package com.jctrip.hotel.source.model.meituan.req;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: zxy
 * @CreateTime: 2023-12-26 11:41
 * @Description: https://developer-distribution.meituan.com/#/apiDocs/1/25/29
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OrderQueryReq {

    /**
     * 查询订单参数（distributorOrderId和mtOrderId必填一项即可）
     */
    private List<QueryParam> queryParams;

    @Data
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class QueryParam {

        /**
         * 分销商订单ID
         */
        private String distributorOrderId;

        /**
         * 美团订单ID
         */
        private Long mtOrderId;
    }
}
